<table>
  <tr>
    <th>Name</th>
	<th>First Name</th>
    <th>Street</th>
	<th>StreetNr.</th>
	<th>Zip</th>
	<th>City</th>	
    <th>Email</th>
    <th>Telephone</th>
	<th>Pay method</th>
  </tr>

<% @orders.each do |order| %>
  <tr>
    <td><%=h order.name %></td>
	<td><%=h order.firstName %></td>
    <td><%=h order.street %></td>
	<td><%=h order.streetNr %></td>
	<td><%=h order.zip %></td>
	<td><%=h order.city %></td>	
    <td><%=h order.email %></td>
	<td><%=h order.telephone %></td>
    <td><%=h order.pay_method %></td>
   
	<td class="admin"><%= link_to 'Show', order %><br/>
	<%= link_to 'Destroy', order, :confirm => 'Are you sure?', :method => :delete %></td>
	
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New order', new_order_path %>